Replication instructions for readers of Carnes et al. 2024, "The Global Legislators Database"

The file "gld_agg.csv" contains the country-level data that are presented and analyzed in the article. 

(1) Run the replication_script.R. The file produces all tables and figures in the published paper and Appendix A. 

(2) To produce the left panel of Figure 3, the individual-level GLD data must be loaded in from a separate Harvard Dataverse directory, located at: https://doi.org/10.7910/DVN/U1ZNVT. The code will produce Figure 3 with the individual-level dataset but is commented out because this dataset may not be available to all users. Thus, to produce Figure 3, lines 60--105 should be uncommented out. 

(3) Replication materials for Appendix B (the GLD codebook) codebook, are provided with the GLD dataset. The GLD dataset is located at: https://doi.org/10.7910/DVN/U1ZNVT.